extends Node2D

@export var label_存活时间 : int = 0
@export var label_击杀数量 : int = 0
@export var label_关卡数量 : int = 0

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	$"CanvasLayer_UI容器/PanelContainer/GridContainer/Label_存活数据".text = str(label_存活时间) + "秒"
	$"CanvasLayer_UI容器/PanelContainer/GridContainer/Label_击杀数据".text = str(label_击杀数量) + "个"
	$"CanvasLayer_UI容器/PanelContainer/GridContainer/Label_关卡数据".text = str(label_关卡数量) + "关"
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	pass


func _on_button_重新开始_pressed() -> void:
	get_tree().change_scene_to_file("res://scene_场景/scene_游戏舞台.tscn")
	pass # Replace with function body.


func _on_button_退出游戏_pressed() -> void:
	get_tree().quit()
	pass # Replace with function body.
